<%@page import="com.raychi.demo.entity.Product"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
</head>
<body>
	<form method="post"
		action="<%=request.getContextPath() %>/product/product_save.action">
		<table border="1">
			<tr>
				<td>物品名称</td>
				<td><input type="text" name="product.name" /></td>
			</tr>
			<tr>
				<td>物品分类</td>
				<td>
					<select name="product.catId">
						<s:iterator value="categories">
							<option value="${id}">${name}</option>
						</s:iterator>
					</select>
				</td>
			</tr>
			<tr>
				<td>物品价格</td>
				<td><input type="text" name="product.price" /></td>
			</tr>
			<tr>
				<td colspan="3"><input type="submit" value="保存" /></td>
			</tr>
		</table>
	</form>
</body>
</html>